package com.basemanage.conf;

import com.basemanage.controller.ImageController;
import com.basemanage.controller.IndexController;
import com.basemanage.controller.UeditorController;
import com.basemanage.controller.app.AppVersionController;
import com.basemanage.controller.app.WxappController;
import com.basemanage.controller.appraise.AppraiseController;
import com.basemanage.controller.artical.articalController;
import com.basemanage.controller.artical.newstypeController;
import com.basemanage.controller.img.AdvertController;
import com.basemanage.controller.orderbar.OrderRepairController;
import com.basemanage.controller.orderbar.OrderbarController;
import com.basemanage.controller.orderbar.OrderdetailController;
import com.basemanage.controller.server.ServerTypeController;
import com.basemanage.controller.server.ServerprojectController;
import com.basemanage.controller.slide.SlideController;
import com.basemanage.controller.staff.StaffController;
import com.basemanage.controller.store.StoreController;
import com.basemanage.controller.storestaff.StoreStaffController;
import com.basemanage.controller.sys.DictController;
import com.basemanage.controller.sys.LogController;
import com.basemanage.controller.sys.ResController;
import com.basemanage.controller.sys.RoleController;
import com.basemanage.controller.sys.UserController;
import com.basemanage.service.ServerTypeService;
import com.jfinal.config.Routes;


/**
 * 后台管理Routes配置
 */
public class AdminRoutes extends Routes {

	@Override
	public void config() {
		setBaseViewPath("/WEB-INF/view");

		//系统管理
		add("/", IndexController.class);
		add("/ueditor/config",UeditorController.class,"/ueditor");
		add("/sys/log", LogController.class, "/sys");
		add("/sys/res", ResController.class, "/sys");
		add("/sys/user", UserController.class, "/sys");
		add("/sys/role", RoleController.class, "/sys");
		add("/dict", DictController.class, "/sys/dict");
		
		add("/app", AppVersionController.class, "/app");
		add("/login/image", ImageController.class, "/image");
		add("/wxapp",WxappController.class,"/wxapp");
		add("/img/Advert",AdvertController.class,"/img/Advert");
		
		//首页管理
		add("/appraise",AppraiseController.class,"/appraise");
		add("/slide",SlideController.class,"/slide"); //首页配置
		add("/staff",StaffController.class,"/staff"); //服务师
		
		//门店管理
		add("/store",StoreController.class,"/store"); //门店列表
		add("/storeStaff",StoreStaffController.class,"/storeStaff");//店员管理
		//服务管理
		add("/server/type",ServerTypeController.class,"/serverType");
		add("/server/project",ServerprojectController.class,"/serverproject");
		//订单
		add("/orders/list",OrderbarController.class,"/orderbar");
		add("/orders/detail",OrderdetailController.class,"/orderdetail");
		add("/orders/repair",OrderRepairController.class,"/orderdetail/repair");
		
		//文章
		add("/artical/list",articalController.class,"/artical");
		add("/news/type",newstypeController.class,"/newstype");
		
	}

}
